package com.efast.cafe.portal.dao.common;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.efast.cafe.portal.bean.common.PortalCommonCollectionBean;
import com.efast.cafe.portal.entity.common.PortalCommonCollection;

public interface PortalCommonCollectionDao {

	
	
	public void addRestDayList(@Param("list")List<PortalCommonCollection> list);
	
	/**
	 * 删除企业的工作日历
	 * @param day yyyy-mm-dd
	 */
	public void delCompanyRestDay(@Param("companyCode")String companyCode,@Param("year")String year);
	
	/**
	 * 查詢年的休息日
	 * @param year yyyy
	 * @return
	 */
	public List<PortalCommonCollectionBean> queryRestDayByYear(@Param("year")String year,@Param("companyCode")String companyCode,@Param("username")String username);
	
	public int countUserRestDay(@Param("year")String year,@Param("companyCode")String companyCode,@Param("username")String username);

	public void delUserOrRestDay(@Param("year")String year,@Param("companyCode")String companyCode,@Param("username")String username,@Param("startDate")String startDate,@Param("endDate")String endDate);
}
